package com.demo.web.vo;

import javax.validation.constraints.Min;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 分页查询VO
 * 
 *
 */
@Setter
@Getter
@ApiModel("分页请求")
public class PageReq extends BaseReq {

    @Min(1)
    @ApiModelProperty("当前页号")
    private int pageIndex = 1;

    @Min(1)
    @ApiModelProperty("每页大小")
    private int pageSize = 10;
}
